home *** CD-ROM | disk | FTP | other *** search
-
-
-
- AREACODE(1) AREACODE(1)
-
-
-
- NAME
- areacode - find areacodes and/or country codes by code or
- location
-
- SYNOPSIS
- areacode [ code ] [ city | state ] [ city, state ] [ - ]
-
- DESCRIPTION
- Areacode finds areacodes and country codes either by numeric
- code or location as follows:
-
- Argument strings are processed one per line. They can be
- entered either from the command line or from stdin (if
- areacode is invoked with '-' as the only argument). All
- output is to stdout.
-
- If the first character of an argument string is numeric, the
- string is assumed to represent an area/country code which is
- checked against known codes. If a match is found, the code
- and the corresponding state, province, or country are
- printed, followed by a list of known cities in that area,
- and their city codes if required.
-
- If the first character is not numeric, and the string
- contains no comma, the string is assumed to represent a city
- or state/country or both, and all matches will be printed.
- If there is a comma in the string, however, anything before
- it is interpreted as a city, and anything after it is taken
- to be a state, province, or country, in which case the
- search will be restricted to matching states, provinces, or
- countries.
-
- Alphabetic strings match if their beginning characters
- match. If the length of the string used in a 'state' search
- is two, the string will match either the standard two-letter
- abbreviation for that state or the first two characters of
- its name. Case is not significant. Thus, 'ar' matches both
- Arizona and Arkansas, 'AL' matches Alberta, Alabama, and
- Alaska, while 'Ak' matches only Alaska.
-
- The following abbreviations (if directly followed by '.')
- will be expanded before matches are attempted:
-
- st. -> saint sta. -> santa ft. -> fort
- n. -> north no. -> north e. -> east
- s. -> south so. -> south w. -> west
-
- If a state/province/country matches, but no city within that
- area matches, the state/province/country name will be listed
- followed by all codes for that area. If there is a matching
- city, however, it will be listed along with its
- areacode/country code and city code (if required).
-
-
-
- Page 1 (printed 4/23/87)
-
-
-
-
-
-
- AREACODE(1) AREACODE(1)
-
-
-
- Results of some example strings:
-
- 609
- New Jersey (NJ): Atlantic City, Barnegat, Bellmawr,
- Bridgeton, Burlington, Camden, Collingswood, Ewing, Fort
- Dix, Glassboro, Gloucester, Haddonfield, Millville, Mount
- Holly, Princeton, Trenton, Vineland, Wildwood, Woodbury
-
- Cal - anything starting with 'cal'
- California (CA): 209 213 408 415 619 707 714 805 818 916
- Calumet City, Illinois (312)
- Callicoon, New York (914)
-
- ,cal - states starting with 'cal'
- California (CA): 209 213 408 415 619 707 714 805 818 916
-
- Ft., N. - 'Fort' cities in 'North' states
- Fort Bragg, North Carolina (919)
- North Dakota (ND): 701
-
- If at least one match is found, the program will exit with a
- code of 0, otherwise it will exit with a code of 1.
-
-
-
- P.S. Renaming/linking the executable file to 'ac' saves
- typing...
-
- AUTHOR
- Skip Gilbrech
-
- SEE ALSO
- The Phone Book
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-